#!/bin/bash
for i in *metadata.txt; do sed -n "/TimeStamp/p" $i | cut -c 17- > ${i:0:-12}timestamp.txt ; done